var mongoose = require('mongoose');
const Schema = mongoose.Schema;
const schema = new Schema({
  score: Number,
  scene: Number, //1 正常模式 2 困难模式
  type: Number, //1 星星排行 2 关卡排行
  uid: {type: mongoose.Schema.Types.ObjectId, ref:'users'}
},{collection:'ranks'});
module.exports = mongoose.model('ranks', schema);